<div class="layui-form-item">
    <label class="layui-form-label">{$vo.title|raw|default=""}</label>
    <div class="layui-input-inline">
        <div class="layui-upload-drag" id="upload_imgs_{$vo.name}" style="min-width: 300px;">
            <i class="layui-icon"></i>
            <p>点击上传，或将文件拖拽到此处，支持多图片</p>

            {//暂不考虑直接赋值，数据库取值}
            <div class="preview_imgs" id="upload_imgs_view_{$vo.name}">
                <input type="hidden" name="{$vo.name}">
                {notempty name="info[$vo.name]"}
                    {volist name=":get_file_path($info[$vo.name])" id="v2"}
                    <div class="preview_imgs_item">
                        <img src="{$v2.url}" data-v="{$v2.id}">
                        <i class="layui-icon layui-icon-close-fill del_imgs_{$vo.name}" style="font-size: 20px; color: #ff0000;"></i>
                    </div>
                    {/volist}
                {/notempty}
            </div>

        </div>


    </div>
</div>
<style>
    .preview_imgs{
        display: flex;flex-direction: row;margin-top: 10px;
    }
    .preview_imgs_item{
        position: relative;
    }
    .preview_imgs_item img{
        margin-right: 10px;max-width: 80px;max-height: 80px;
    }
    .preview_imgs_item i{
        position: absolute;right: 5px;top: -5px;
    }
</style>
